package com.sz.admin.notification.pojo.po;

import com.mybatisflex.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.io.Serial;
import com.sz.mysql.EntityChangeListener;

/**
* <p>
* 系统消息通知
* </p>
*
* @author sz-admin
* @since 2025-06-30
*/
@Data
@Table(value = "notification", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "系统消息通知")
public class Notification implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description ="通知ID（通知时间6位yy-mm-dd + 用户ID12位 + 序列号2位）")
    private String notifyId;

    @Schema(description ="接收用户ID")
    private String userId;

    @Schema(description ="通知类型: 0=审核结果 1=系统公告 2=新评论 3=新点赞 4=新回复")
    private Integer type;

    @Schema(description ="通知标题")
    private String title;

    @Schema(description ="通知内容")
    private String content;

    @Schema(description ="0:未读 1:已读")
    private Integer isRead;

    @Schema(description ="关联对象ID")
    private String refId;

    @Schema(description ="创建时间 (格式: yy-mm-dd:hh-mm-ss)")
    private String createdAt;

    @Schema(description ="更新时间 (格式: yy-mm-dd:hh-mm-ss)")
    private String updatedAt;

    @Schema(description ="")
    private Integer isDeleted;

}